package edu.nf.bs.service;

import com.github.pagehelper.PageInfo;
import edu.nf.bs.entity.UserInfo;

import javax.servlet.http.Part;
import java.io.IOException;


public interface UserInfoService {
    UserInfo checkUser(UserInfo userInfo);
    PageInfo<UserInfo> listUser(String userName,Integer pageNum,Integer pageSize);
    void addUser(UserInfo userInfo);

    String updateHeaderPictureById(String userPig,String userId, Part part) throws IOException;
    void updateUser(UserInfo userInfo);

    int updateUserPhone(String userPhone,String userId) ;

    int updateUserPassword(String userPassword,String userId) ;

    UserInfo queryUser(String userId) ;
}
